/**
 * 日志模块
 * 作者：GodMainCode
 * 创建时间：2024-01-17
 * 修改时间：2024-01-17
 * 修改人：GodMainCode
 */

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ScheduleModule } from '@nestjs/schedule';
import { LogService } from './log.service';
import { LogController } from './log.controller';
import { LogSchedule } from './log.schedule';
import { LogExportService } from './log-export.service';
import { LogAlertService } from './log-alert.service';
import { LogAlertController } from './log-alert.controller';
import { LogAlertHistoryService } from './log-alert-history.service';
import { LogAlertHistoryController } from './log-alert-history.controller';
import { Log } from './entities/log.entity';
import { LogAlertHistory } from './entities/log-alert-history.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Log, LogAlertHistory]),
    ScheduleModule.forRoot(),
  ],
  controllers: [
    LogController, 
    LogAlertController, 
    LogAlertHistoryController
  ],
  providers: [
    LogService, 
    LogSchedule, 
    LogExportService, 
    LogAlertService,
    LogAlertHistoryService,
  ],
  exports: [LogService],
})
export class LogModule {} 